//与服务器进行连接，进行数据的接受与发送

#ifndef CLIENT_H
#define CLIENT_H

#include <QObject>

class Client : public QObject
{
    Q_OBJECT
public:
    explicit Client(const QString ip, const unsigned short port) :
        camera_ip_(ip), camera_port_(port) {}
    virtual ~Client() = default;

    virtual void onWritData(const QByteArray data) = 0;
private:
    virtual void onConnectServer() = 0;
    virtual void onReadData() = 0;
protected:
    const QString camera_ip_;
    const unsigned short camera_port_;

};

#endif // CLIENT_H
